dotfiles/nix/.config/nixpkgs/pkgs/peageprint.nix

24 lines
607 B
Nix
Raw Normal View History

2016-09-06 18:42:32 +02:00
{ pkgs ? import <nixpkgs> {}
, stdenv ? pkgs.stdenv
, fetchgit ? pkgs.fetchgit
2018-01-10 22:48:00 +01:00
, samba4 ? pkgs.samba4
2016-09-06 18:42:32 +02:00
, lib ? pkgs.lib
}:
stdenv.mkDerivation {
name = "peage-print";
version = "0.1.2";
src = fetchgit {
url = https://gist.github.com/dsprenkels/d75d6856ec536a4b28422dd1aa107f9d;
rev = "f18f2cbfc93ff475943abb414c84a51a597f48c5";
sha256 = "019ggsn445sw8lb7gvwfsaxdkqdgf8dr5qb2ncir7akm7d70jnd7";
};
buildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install ./peage-print $out/bin
2018-01-10 22:48:00 +01:00
wrapProgram $out/bin/peage-print --suffix PATH : ${samba4}/bin
2016-09-06 18:42:32 +02:00
'';
}