purescm: avoid `lib.fileset`

Emily 34a6c331 4e30014c

+5 -18
pkgs/by-name/pu/purescm/.gitignore pkgs/by-name/pu/purescm/manifests/.gitignore
+2 -2
pkgs/by-name/pu/purescm/README.rst
··· 14 14 To update this package 15 15 ====================== 16 16 17 - #. Bump the ``./package.json`` version pin 18 - #. Run ``nix-shell -p nodejs --command "npm i --package-lock-only"`` 17 + #. Bump the ``./manifests/package.json`` version pin 18 + #. Run ``(cd manifests && nix-shell -p nodejs --command "npm i --package-lock-only")`` 19 19 #. Update ``npmDeps.hash`` in the ``package.nix``
pkgs/by-name/pu/purescm/package-lock.json pkgs/by-name/pu/purescm/manifests/package-lock.json
pkgs/by-name/pu/purescm/package.json pkgs/by-name/pu/purescm/manifests/package.json
+3 -16
pkgs/by-name/pu/purescm/package.nix
··· 8 8 let 9 9 inherit (lib) fileset; 10 10 11 - packageLock = builtins.fromJSON (builtins.readFile ./package-lock.json); 11 + packageLock = builtins.fromJSON (builtins.readFile ./manifests/package-lock.json); 12 12 13 13 pname = "purescm"; 14 14 version = packageLock.packages."node_modules/${pname}".version; ··· 16 16 package = buildNpmPackage { 17 17 inherit pname version; 18 18 19 - src = fileset.toSource { 20 - root = ./.; 21 - fileset = fileset.unions [ 22 - ./package.json 23 - ./package-lock.json 24 - ./.gitignore 25 - ]; 26 - }; 19 + src = ./manifests; 27 20 dontNpmBuild = true; 28 21 29 22 npmDeps = fetchNpmDeps { 30 - src = fileset.toSource { 31 - root = ./.; 32 - fileset = fileset.unions [ 33 - ./package-lock.json 34 - ./package.json 35 - ]; 36 - }; 23 + src = ./manifests; 37 24 hash = "sha256-ljeFcLvIET77Q0OR6O5Ok1fGnaxaKaoywpcy2aHq/6o="; 38 25 }; 39 26