Publish nix derivation for SJW

This commit is contained in:
Tissevert 2020-12-13 12:06:33 +01:00
parent 90daeef36e
commit a182a6fa0c

33
default.nix Normal file
View file

@ -0,0 +1,33 @@
{ pkgs ? import <nixpkgs> {} }:
builtins.intersectAttrs {SJW = 1;} (pkgs.haskellPackages.override {
overrides = self: super: {
SJW = self.callPackage (
{ mkDerivation, attoparsec, base, Cabal, containers, directory
, filepath, mtl, optparse-applicative, random, stdenv, text, time
, unix
}:
mkDerivation {
pname = "SJW";
version = "0.1.2.2";
src = builtins.fetchGit {
url = "https://git.marvid.fr/Tissevert/SJW.git";
ref = "v0.1.2.2";
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
attoparsec base containers directory filepath mtl random text time
unix
];
executableHaskellDepends = [
attoparsec base optparse-applicative text
];
testHaskellDepends = [ base Cabal directory filepath random ];
benchmarkHaskellDepends = [ base directory filepath random time ];
homepage = "https://git.marvid.fr/Tissevert/SJW";
description = "The Simple Javascript Wrench is a very simple tool to pack several JS «modules» into a single script";
license = stdenv.lib.licenses.bsd3;
}
) {};
};
})