about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/version-management/sit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/version-management/sit/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/version-management/sit/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/version-management/sit/default.nix b/nixpkgs/pkgs/applications/version-management/sit/default.nix
new file mode 100644
index 000000000000..75368bd88463
--- /dev/null
+++ b/nixpkgs/pkgs/applications/version-management/sit/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg, 
+  # Darwin
+  libiconv, CoreFoundation, Security }:
+
+rustPlatform.buildRustPackage rec {
+  name = "sit-${version}";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "sit-fyi";
+    repo = "sit";
+    rev = "v${version}";
+    sha256 = "10ycs6vc7mfzxnxrki09xn974pcwh196h1pfnsds98x6r87hxkpn";
+  };
+
+  buildInputs = [ cmake libzip gnupg ] ++
+    (if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
+
+  preCheck = ''
+    export HOME=$(mktemp -d)
+  '';
+
+  cargoSha256 = "023anmnprxbsvqww1b1bdyfhbhjh1ah2kc67cdihvdvi4lqdmbia";
+
+  meta = with stdenv.lib; {
+    description = "Serverless Information Tracker";
+    homepage = https://sit.fyi/;
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ dywedir yrashk ];
+    platforms = platforms.all;
+  };
+}