summary refs log tree commit diff
path: root/pkgs/tools/misc/woof/default.nix
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-17 18:52:52 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-17 18:52:56 +0100
commit0a4723718cab3232948a9e454a0909d5a476e89e (patch)
treeee738b39443389760c4ce9389d2d324b79343958 /pkgs/tools/misc/woof/default.nix
parent5fb6fbcad99c7830fba8a283cd2026657b05dda4 (diff)
downloadnixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.tar
nixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.tar.gz
nixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.tar.bz2
nixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.tar.lz
nixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.tar.xz
nixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.tar.zst
nixpkgs-0a4723718cab3232948a9e454a0909d5a476e89e.zip
woof: 2012-05-31 -> 2020-12-17
Also, fetch from github and bring python3 into scope with it.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'pkgs/tools/misc/woof/default.nix')
-rw-r--r--pkgs/tools/misc/woof/default.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/tools/misc/woof/default.nix b/pkgs/tools/misc/woof/default.nix
index e89ef8dab0e..158a83a99ca 100644
--- a/pkgs/tools/misc/woof/default.nix
+++ b/pkgs/tools/misc/woof/default.nix
@@ -1,24 +1,25 @@
-{ stdenv, fetchurl, python }:
+{ stdenv, fetchFromGitHub, python3 }:
 
 stdenv.mkDerivation rec {
-  version = "2012-05-31";
+  version = "2020-12-17";
   pname = "woof";
 
-  src = fetchurl {
-    url = "http://www.home.unix-ag.org/simon/woof-${version}.py";
-    sha256 = "d84353d07f768321a1921a67193510bf292cf0213295e8c7689176f32e945572";
+  src = fetchFromGitHub {
+    owner = "simon-budig";
+    repo = "woof";
+    rev = "4aab9bca5b80379522ab0bdc5a07e4d652c375c5";
+    sha256 = "0ypd2fs8isv6bqmlrdl2djgs5lnk91y1c3rn4ar6sfkpsqp9krjn";
   };
 
-  buildInputs = [ python ];
+  propagatedBuildInputs = [ python3 ];
 
   dontUnpack = true;
 
-  installPhase =
-    ''
-      mkdir -p $out/bin
-      cp $src $out/bin/woof
-      chmod +x $out/bin/woof
-    '';
+  installPhase = ''
+    mkdir -p $out/bin
+    cp $src/woof $out/bin/woof
+    chmod +x $out/bin/woof
+  '';
 
   meta = with stdenv.lib; {
     homepage = "http://www.home.unix-ag.org/simon/woof.html";