mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
updated nixRepositoryManager
now you can use specify another source file for testing in a nix way svn path=/nixpkgs/trunk/; revision=12662
This commit is contained in:
parent
1acf5fa9f0
commit
9d181d621f
@ -115,9 +115,9 @@
|
||||
url = http://mawercer.de/~nix/repos/mkcabal.tar.gz;
|
||||
sha256 = "9f231756c36b46d29516ed327a320837194799a76de4833dc6a5c88e5ccd1658";
|
||||
};
|
||||
nix_repository_manager = args: with args; fetchurl {
|
||||
nix_repository_manager = args: with args; fetchurl { # Tue Aug 19 13:26:08 UTC 2008
|
||||
url = http://mawercer.de/~nix/repos/nix_repository_manager.tar.gz;
|
||||
sha256 = "449065f8411c5628b9fe88445601558dfd9a5f87b1703df9465838ef0afb9d34";
|
||||
sha256 = "8eb43825b7336af95544626c558920a809d043d7417da294d36166df526e57ca";
|
||||
};
|
||||
plugins = args: with args; fetchurl {
|
||||
url = http://mawercer.de/~nix/repos/plugins.tar.gz;
|
||||
|
@ -29,15 +29,14 @@ in
|
||||
|
||||
pass = {
|
||||
buildPhase = ''
|
||||
cp ${pkgs.getConfig ["nixRepositoryManager" "sourcefile"] "nix-repository-manager.hs"} source.hs
|
||||
s=$out/share/nix-repository-manager
|
||||
ensureDir $out/bin $s
|
||||
cp /pr/haskell/nix_repository_manager/nix-repository-manager.hs .
|
||||
ghc --make nix-repository-manager.hs -o $s/nix-repository-manager
|
||||
ghc --make source.hs -o $s/nix-repository-manager
|
||||
b=$out/bin/nix-repository-manager
|
||||
echo -e "#!/bin/sh\n$s/nix-repository-manager ${config} \$@" > $b
|
||||
chmod +x $b
|
||||
'';
|
||||
d=1; # dummy var to force rebuilding (local develepoment)
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user