diff options
| author | Tom Harley | 2020-12-06 13:55:04 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-12-06 13:55:04 +0000 |
| commit | 62ed5302722e2ee819663d7f5eed5dd46651034b (patch) | |
| tree | d34ff8079289f9f4c839f51dc601bc06c0bfce36 /minion | |
| parent | Add .gitignore (diff) | |
| download | magpkgs-62ed5302722e2ee819663d7f5eed5dd46651034b.tar.gz magpkgs-62ed5302722e2ee819663d7f5eed5dd46651034b.zip | |
Rewrite to treat as own package repo
Diffstat (limited to 'minion')
| -rw-r--r-- | minion/default.nix | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/minion/default.nix b/minion/default.nix index 180949d..a1fad6e 100644 --- a/minion/default.nix +++ b/minion/default.nix @@ -1,29 +1,22 @@ -let - pkgs = import <nixpkgs> {}; +{ stdenv +, fetchurl +}: -in - { stdenv ? pkgs.stdenv - , fetchurl ? pkgs.fetchurl - }: +stdenv.mkDerivation rec { + pname = "minion"; + version = "1.8"; - stdenv.mkDerivation rec { - name = "minion"; - version = "1.8"; + src = fetchurl { + url = https://blogs.cs.st-andrews.ac.uk/constraintmodelling/files/2015/06/minion-1.8-linux.tar_1.gz; + sha256 = "04d07mc5kffzfl3q56180kcxaixsaph9vdzcl3salpn2h9qjsnq3"; + }; - src = fetchurl { - url = https://blogs.cs.st-andrews.ac.uk/constraintmodelling/files/2015/06/minion-1.8-linux.tar_1.gz; - sha256 = "04d07mc5kffzfl3q56180kcxaixsaph9vdzcl3salpn2h9qjsnq3"; - }; + unpackCmd = '' + tar -xf $curSrc + ''; - unpackCmd = '' - tar -xf $curSrc - ''; - - dontConfigure = true; - dontBuild = true; - - installPhase = '' - mkdir -p $out/bin - cp ./bin/minion $out/bin/minion - ''; - } + installPhase = '' + mkdir -p $out/bin + cp ./bin/minion $out/bin/minion + ''; +} |
