packages/{searxng,stevenblack-hosts,tempo}: use derivation fetcher
This commit is contained in:
parent
ed79a89642
commit
336343488e
3 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,9 @@
|
||||||
{ runCommand, pins }:
|
{ runCommand, npins, pins }:
|
||||||
|
|
||||||
|
let
|
||||||
|
src = npins.mkSource pins.stevenblack;
|
||||||
|
in
|
||||||
|
|
||||||
runCommand "stevenblack-hosts-${pins.stevenblack.version}" {} ''
|
runCommand "stevenblack-hosts-${pins.stevenblack.version}" {} ''
|
||||||
cp ${pins.stevenblack}/hosts $out
|
cp ${src}/hosts $out
|
||||||
''
|
''
|
||||||
|
|
|
@ -33,7 +33,7 @@ super: rec {
|
||||||
|
|
||||||
tempo = super.tempo.overrideAttrs (_: {
|
tempo = super.tempo.overrideAttrs (_: {
|
||||||
version = builtins.substring 1 (-1) pins.tempo.version;
|
version = builtins.substring 1 (-1) pins.tempo.version;
|
||||||
src = pins.tempo;
|
src = super.npins.mkSource pins.tempo;
|
||||||
subPackages = [ "cmd/tempo" ];
|
subPackages = [ "cmd/tempo" ];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch, pins }:
|
{ lib, nixosTests, python3, python3Packages, npins, pins }:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ toPythonModule (buildPythonApplication rec {
|
||||||
pname = "searxng";
|
pname = "searxng";
|
||||||
version = "1.0.0pre_${builtins.substring 0 7 pins.searxng.revision}";
|
version = "1.0.0pre_${builtins.substring 0 7 pins.searxng.revision}";
|
||||||
|
|
||||||
src = pins.searxng;
|
src = npins.mkSource pins.searxng;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's/==.*$//' requirements.txt
|
sed -i 's/==.*$//' requirements.txt
|
||||||
|
|
Loading…
Reference in a new issue