2016-08-11 12:41:26 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
# FIXME
|
2016-09-26 16:06:51 +00:00
|
|
|
nix = builtins.storePath /nix/store/b554awsd9vssb936mb32icgpfbyifsai-nix-1.12pre1234_abcdef;
|
|
|
|
#lib.overrideDerivation nixUnstable (orig: {
|
|
|
|
# src = /home/eelco/Dev/nix;
|
|
|
|
#});
|
2016-08-11 12:41:26 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nixos-channel-scripts";
|
|
|
|
|
|
|
|
buildInputs = with perlPackages;
|
2016-09-26 16:06:51 +00:00
|
|
|
[ nix sqlite makeWrapper perl FileSlurp LWP LWPProtocolHttps ListMoreUtils DBDSQLite NetAmazonS3 boehmgc ];
|
2016-08-11 12:41:26 +00:00
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
|
|
|
g++ -g ${./generate-programs-index.cc} -Wall -std=c++11 -o $out/bin/generate-programs-index \
|
|
|
|
-I ${nix}/include/nix -lnixmain -lnixexpr -lnixformat -lsqlite3 -lgc
|
|
|
|
|
|
|
|
cp ${./mirror-nixos-branch.pl} $out/bin/mirror-nixos-branch
|
2016-08-22 15:18:44 +00:00
|
|
|
wrapProgram $out/bin/mirror-nixos-branch --set PERL5LIB $PERL5LIB --prefix PATH : ${wget}/bin:${git}/bin:${nix}/bin:${gnutar}/bin:${xz}/bin:$out/bin
|
2016-09-26 16:06:51 +00:00
|
|
|
|
|
|
|
patchShebangs $out/bin
|
2016-08-11 12:41:26 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
}
|