uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/servers/timetagger/default.nix
Normal file
32
pkgs/servers/timetagger/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
|
||||
, addr ? "127.0.0.1"
|
||||
, port ? 8082
|
||||
}:
|
||||
|
||||
#
|
||||
# Timetagger itself is a library that a user must write a "run.py" script for
|
||||
# We provide a basic "run.py" script with this package, which simply starts
|
||||
# timetagger.
|
||||
#
|
||||
|
||||
python3.pkgs.buildPythonApplication {
|
||||
inherit (python3.pkgs.timetagger) pname version src meta;
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
setuptools
|
||||
timetagger
|
||||
];
|
||||
|
||||
format = "custom";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
echo "#!${python3.interpreter}" >> $out/bin/timetagger
|
||||
cat run.py >> $out/bin/timetagger
|
||||
sed -Ei 's,0\.0\.0\.0:80,${addr}:${toString port},' $out/bin/timetagger
|
||||
chmod +x $out/bin/timetagger
|
||||
'';
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue