aboutsummaryrefslogtreecommitdiff
path: root/minion/default.nix
blob: 180949d22b1cb956161649bf4f332dfda1b3fdf4 (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
let
  pkgs = import <nixpkgs> {};

in
  { stdenv ? pkgs.stdenv
  , fetchurl ? pkgs.fetchurl
  }:

  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";
    };

    unpackCmd = ''
      tar -xf $curSrc
    '';

    dontConfigure = true;
    dontBuild = true;

    installPhase = ''
      mkdir -p $out/bin
      cp ./bin/minion $out/bin/minion
    '';
  }