about summary refs log tree commit diff
path: root/shells
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-09-24 20:17:39 +0000
committerAlyssa Ross <hi@alyssa.is>2020-09-29 11:51:57 +0000
commit6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5 (patch)
tree3b68aa60a99fd2bb6bc4549d029a18a6ba52e868 /shells
parent35f1abc261dc776f26721670b618e9a9df29a4ca (diff)
downloadnixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.tar
nixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.tar.gz
nixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.tar.bz2
nixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.tar.lz
nixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.tar.xz
nixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.tar.zst
nixlib-6e7b1e6f2ef20472bcb41bf6e10c1c291dc5cfe5.zip
shells/linux: switch to buildable derivation
This way, I can build it up front easily, as part of another
derivation even.  And easily copy it between stores with
nix-copy-closure.
Diffstat (limited to 'shells')
-rw-r--r--shells/linux.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/shells/linux.nix b/shells/linux.nix
index f611ef22a59b..3d371b0d6b21 100644
--- a/shells/linux.nix
+++ b/shells/linux.nix
@@ -1,7 +1,8 @@
 { pkgs ? import ../. {} }:
 with pkgs;
 
-mkShell {
+stdenv.mkDerivation {
+  name = "linux-shell";
   buildInputs = [
     bison flex bc elfutils openssl
 
@@ -12,4 +13,8 @@ mkShell {
     graphviz imagemagick python3Packages.sphinx python3Packages.sphinx_rtd_theme
     texlive.combined.scheme-minimal
   ];
+
+  buildCommand = ''
+    printf "%s\n" $buildInputs > $out
+  '';
 }