nix-repl: Add
This commit is contained in:
parent
fc2210300f
commit
095fc0ebaa
35
pkgs/tools/package-management/nix-repl/default.nix
Normal file
35
pkgs/tools/package-management/nix-repl/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, fetchgit, nix, readline, boehmgc }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "nix-repl-${getVersion nix}-${substring 0 7 src.rev}";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = https://github.com/edolstra/nix-repl.git;
|
||||||
|
rev = "81d658fe4afda234028cd4551e12491db4303957";
|
||||||
|
sha256 = "067mj8as99n0hkrr2qss3y3hnr8c5zy4n8bqx3z900n3j43cwzyc";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ nix readline boehmgc ];
|
||||||
|
|
||||||
|
buildPhase = "true";
|
||||||
|
|
||||||
|
# FIXME: unfortunate cut&paste.
|
||||||
|
installPhase =
|
||||||
|
''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
g++ -O3 -Wall -std=c++0x \
|
||||||
|
-o $out/bin/nix-repl nix-repl.cc \
|
||||||
|
-I${nix}/include/nix -L${nix}/lib/nix \
|
||||||
|
-lformat -lutil -lstore -lexpr -lmain -lreadline -lgc
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://github.com/edolstra/nix-repl;
|
||||||
|
description = "An interactive environment for evaluating and building Nix expressions";
|
||||||
|
maintainers = [ maintainers.eelco ];
|
||||||
|
license = licenses.gpl3;
|
||||||
|
platforms = nix.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
@ -69,5 +69,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "The Nix Deployment System";
|
description = "The Nix Deployment System";
|
||||||
homepage = http://nixos.org/;
|
homepage = http://nixos.org/;
|
||||||
license = "LGPLv2+";
|
license = "LGPLv2+";
|
||||||
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -69,5 +69,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "The Nix Deployment System";
|
description = "The Nix Deployment System";
|
||||||
homepage = http://nixos.org/;
|
homepage = http://nixos.org/;
|
||||||
license = "LGPLv2+";
|
license = "LGPLv2+";
|
||||||
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -9798,6 +9798,8 @@ let
|
|||||||
|
|
||||||
nixops = callPackage ../tools/package-management/nixops { };
|
nixops = callPackage ../tools/package-management/nixops { };
|
||||||
|
|
||||||
|
nix-repl = callPackage ../tools/package-management/nix-repl { };
|
||||||
|
|
||||||
nut = callPackage ../applications/misc/nut { };
|
nut = callPackage ../applications/misc/nut { };
|
||||||
|
|
||||||
solfege = callPackage ../misc/solfege {
|
solfege = callPackage ../misc/solfege {
|
||||||
|
@ -218,8 +218,6 @@ let
|
|||||||
ncat = linux;
|
ncat = linux;
|
||||||
netcat = all;
|
netcat = all;
|
||||||
nfsUtils = linux;
|
nfsUtils = linux;
|
||||||
nix = all;
|
|
||||||
nixUnstable = all;
|
|
||||||
nmap = linux;
|
nmap = linux;
|
||||||
nss_ldap = linux;
|
nss_ldap = linux;
|
||||||
nssmdns = linux;
|
nssmdns = linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user