summary refs log tree commit diff
diff options
context:
space:
mode:
authorfreezeboy <freezeboy@users.noreply.github.com>2020-12-28 19:18:03 +0100
committerfreezeboy <freezeboy@users.noreply.github.com>2020-12-28 21:47:12 +0100
commit69b69f4a823aeffaa22b680ae9eb1b556672ab0d (patch)
tree151f38f48440b8c01d7ab72c0a256f0eec6896ef
parentbee49dfd0eb7fc2a616355f08455d212221593cb (diff)
downloadnixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.tar
nixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.tar.gz
nixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.tar.bz2
nixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.tar.lz
nixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.tar.xz
nixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.tar.zst
nixpkgs-69b69f4a823aeffaa22b680ae9eb1b556672ab0d.zip
statik: unstable-2019-07-31 -> 0.1.7
-rw-r--r--pkgs/development/tools/statik/default.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/development/tools/statik/default.nix b/pkgs/development/tools/statik/default.nix
index f535fa055ed..48ceea24b70 100644
--- a/pkgs/development/tools/statik/default.nix
+++ b/pkgs/development/tools/statik/default.nix
@@ -1,18 +1,26 @@
-{ stdenv, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
-buildGoPackage {
+buildGoModule rec {
   pname = "statik";
-  version = "unstable-2019-07-31";
-  goPackagePath = "github.com/rakyll/statik";
+  version = "0.1.7";
 
   src = fetchFromGitHub {
     owner = "rakyll";
     repo = "statik";
-    rev = "925a23bda946b50bb0804894f340c5da2b95603b";
-    sha256 = "15wwgrprfq36pa13b9anp7097q1fqcad28hirvivybmc011p0fri";
+    rev = "v${version}";
+    sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
   };
 
-  meta = with stdenv.lib; {
+  vendorSha256 = "pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
+
+  # Avoid building example
+  subPackages = [ "." "fs" ];
+  # Tests are checking that the files embeded are preserving
+  # their meta data like dates etc, but it assumes to be in 2048
+  # which is not the case once entered the nix store
+  doCheck = false;
+
+  meta = with lib; {
     homepage = "https://github.com/rakyll/statik";
     description = "Embed files into a Go executable ";
     license = licenses.asl20;