summary refs log tree commit diff
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2019-09-21 11:43:17 +0200
committerElis Hirwing <elis@hirwing.se>2019-09-21 11:43:17 +0200
commit4f297c2b6fbe354ed78f4bc68b97314dd8967152 (patch)
treed24be1a18cb763bb63b431e75e81f4408f832d46
parent859a32bfdb31823eb3c11471df1422eac110c743 (diff)
downloadnixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.tar
nixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.tar.gz
nixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.tar.bz2
nixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.tar.lz
nixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.tar.xz
nixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.tar.zst
nixpkgs-4f297c2b6fbe354ed78f4bc68b97314dd8967152.zip
cask: Fix cask usage
Without python as a dependency I only get the following error:
/usr/bin/env: ‘python’: No such file or directory
-rw-r--r--pkgs/development/tools/cask/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/tools/cask/default.nix b/pkgs/development/tools/cask/default.nix
index 8ec2552aeff..f89bd1ddf02 100644
--- a/pkgs/development/tools/cask/default.nix
+++ b/pkgs/development/tools/cask/default.nix
@@ -10,10 +10,15 @@ stdenv.mkDerivation rec {
   };
 
   doCheck = true;
+
+  nativeBuildInputs = [ emacsPackages.emacs ];
   buildInputs = with emacsPackages; [
     s f dash ansi ecukes servant ert-runner el-mock
     noflet ert-async shell-split-string git package-build
+  ] ++ [
+    python
   ];
+
   buildPhase = ''
     emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
   '';
@@ -38,11 +43,9 @@ stdenv.mkDerivation rec {
       Cask can also be used to manage dependencies for your local Emacs configuration.
     '';
 
-    homepage = https://cask.readthedocs.io/en/latest/index.html;
+    homepage = "https://cask.readthedocs.io/en/latest/index.html";
     license = licenses.gpl3Plus;
     platforms = platforms.linux;
     maintainers = [ maintainers.flexw ];
   };
-
-  nativeBuildInputs = [ emacsPackages.emacs python ];
 }