From 61e8781e600a916e51fd663c4d8cd5d93bb894cb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 24 Nov 2019 20:39:26 +0100 Subject: persistent-nix-shell --- nix/default.nix | 1 + nix/persistent-nix-shell.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 nix/persistent-nix-shell.nix (limited to 'nix') diff --git a/nix/default.nix b/nix/default.nix index cef8800..f3e35e2 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -8,4 +8,5 @@ self: super: rolling-directory = self.callPackage ./rolling-directory.nix {}; recv = self.callPackage ./recv.nix {}; notmuch-tcp = self.callPackage ./notmuch-tcp.nix {}; + persistent-nix-shell = self.callPackage ./persistent-nix-shell.nix {}; } diff --git a/nix/persistent-nix-shell.nix b/nix/persistent-nix-shell.nix new file mode 100644 index 0000000..7b371c6 --- /dev/null +++ b/nix/persistent-nix-shell.nix @@ -0,0 +1,22 @@ +{ stdenv +, zsh +}: + +stdenv.mkDerivation rec { + pname = "persistent-nix-shell"; + version = "0.1"; + src = ../persistent-nix-shell; + + phases = [ "buildPhase" "installPhase" ]; + + inherit zsh; + + buildPhase = '' + substituteAll $src persistent-nix-shell + ''; + + installPhase = '' + install -m 0755 -D -t $out/bin \ + persistent-nix-shell + ''; +} -- cgit v1.2.3 From 33b4e0eb74fee27d8edacb581fd6eeb10cce9f4f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 17 Dec 2019 00:17:57 +0100 Subject: worktime --- nix/default.nix | 1 + nix/worktime.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 nix/worktime.nix (limited to 'nix') diff --git a/nix/default.nix b/nix/default.nix index f3e35e2..097d092 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -9,4 +9,5 @@ self: super: recv = self.callPackage ./recv.nix {}; notmuch-tcp = self.callPackage ./notmuch-tcp.nix {}; persistent-nix-shell = self.callPackage ./persistent-nix-shell.nix {}; + worktime = self.callPackage ./worktime.nix {}; } diff --git a/nix/worktime.nix b/nix/worktime.nix new file mode 100644 index 0000000..ddab8b2 --- /dev/null +++ b/nix/worktime.nix @@ -0,0 +1,22 @@ +{ stdenv +, python37 +}: + +stdenv.mkDerivation rec { + pname = "worktime"; + version = "3"; + src = ../worktime.py; + + phases = [ "buildPhase" "installPhase" ]; + + python = python37.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser]); + + buildPhase = '' + substituteAll $src worktime + ''; + + installPhase = '' + install -m 0755 -D -t $out/bin \ + worktime + ''; +} -- cgit v1.2.3