add peage-print script

auto-flake-update
Yorick van Pelt 2016-09-06 18:42:32 +02:00
parent f00d74f49f
commit 08fc43795d
2 changed files with 24 additions and 0 deletions

View File

@ -25,6 +25,7 @@
ftb = pkgs.callPackage ./ftb.nix {};
pyroscope = pkgs.callPackage ./pyroscope.nix {};
peageprint = pkgs.callPackage ./peageprint.nix {};
python35Packages = py3 // {
# pycrypto runs slow tests by default
pycrypto = py3.pycrypto.overrideDerivation (attrs: {

View File

@ -0,0 +1,23 @@
{ pkgs ? import <nixpkgs> {}
, stdenv ? pkgs.stdenv
, fetchgit ? pkgs.fetchgit
, samba3_light ? pkgs.samba3_light
, 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
wrapProgram $out/bin/peage-print --suffix PATH : ${samba3_light}/bin
'';
}