Skip to content

Packaging PeerTube #46987

@nyanloutre

Description

@nyanloutre

I began to work on packaging PeerTube.

But I am new to packaging Yarn applications and I can't figure how to use yarn2nix properly for this one.

For now I tried to create a default.nix :

with (import <nixos-unstable> {});
rec {
  peertube = mkYarnPackage {
    name = "peertube";
    src = ./.;
    packageJson = ./package.json;
    yarnLock = ./yarn.lock;
  };
}

But when I do a nix-build I get the error found changes in the lockfile. I can get past it by generating the yarn.nix file manually with yarn2nix > yarn.nix, but then I get a mismatch hash error on one of the packets :

fixed-output derivation produced path '/nix/store/rpn43kya4gyk9g9izc365ijd0bc0z2gi-jsonld-signatures' with sha1 hash 'g5np5r3shqhib0l1hkr39r611zw4ibyi' instead of the expected hash 'bxk2jqr1skczjmfjs90lbsr2wxihjrkp'

So if someone with interest in packaging this application could help me, I am ready to take advices

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions