diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..8d962a8 --- /dev/null +++ b/default.nix @@ -0,0 +1,33 @@ +{ pkgs ? import {} }: +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; + } + ) {}; + }; +})