Add a default.nix for nix-build
This commit is contained in:
parent
2628822373
commit
1fe7714c6b
|
@ -1,4 +1,4 @@
|
||||||
cabal-version: 3.12
|
cabal-version: 3.8
|
||||||
name: byg
|
name: byg
|
||||||
version: 0.1.0.0
|
version: 0.1.0.0
|
||||||
synopsis: The website builder for mad
|
synopsis: The website builder for mad
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
with import ./nix/common.nix;
|
||||||
|
haskell.callCabal2nix "byg" ./. { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
let
|
||||||
|
sources = import ./sources.nix;
|
||||||
|
pkgs = import sources.nixpkgs {};
|
||||||
|
haskell = pkgs.haskell.packages.ghc910;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
pkgs = pkgs;
|
||||||
|
haskell = haskell;
|
||||||
|
}
|
|
@ -1,12 +1,7 @@
|
||||||
let
|
with import ./nix/common.nix;
|
||||||
sources = import ./nix/sources.nix;
|
pkgs.mkShell {
|
||||||
pkgs = import sources.nixpkgs {};
|
buildInputs = [
|
||||||
haskell = pkgs.haskell.packages.ghc910;
|
|
||||||
in
|
|
||||||
pkgs.stdenv.mkDerivation {
|
|
||||||
name = "byg";
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
haskell.ghc
|
haskell.ghc
|
||||||
cabal-install
|
pkgs.cabal-install
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue