blob: 8c2871a4e63083f66e8a5090b02bab2e637204ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ pkgs ? import <nixpkgs> {} }:
with pkgs.lib;
let
python = (pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
colorama
termcolor
datetime
]));
in pkgs.stdenv.mkDerivation {
pname = "remind-agenda";
version = "0.0.0";
src = pkgs.fetchgit {
url = "https://gitlab.com/dkabus/remind-agenda.git";
rev = "cf4cd6f79aabb16317fc6008588536af5d2e4d9a";
hash = "sha256-f8Tmgz9Tw6gQjqtWhvteajOYieAu8OZy/+FHWC9885U=";
};
buildInputs = with pkgs; [ ];
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = ''
cp $src/remind-agenda .
sed -i 's|/bin/python3|${python}/bin/python3|' ./remind-agenda
'';
installPhase = ''
mkdir -p $out/bin;
cp ./remind-agenda $out/bin;
'';
}
|