Compare commits
2 Commits
b46cf0bf15
...
bd41cf2f64
Author | SHA1 | Date | |
---|---|---|---|
bd41cf2f64 | |||
e48ec6ce3d |
1
cabal.project
Normal file
1
cabal.project
Normal file
@ -0,0 +1 @@
|
|||||||
|
packages: */*.cabal
|
12
flake.lock
12
flake.lock
@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1637014545,
|
"lastModified": 1659877975,
|
||||||
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
|
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
|
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -17,11 +17,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1637841632,
|
"lastModified": 1660646295,
|
||||||
"narHash": "sha256-QYqiKHdda0EOnLGQCHE+GluD/Lq2EJj4hVTooPM55Ic=",
|
"narHash": "sha256-V4G+egGRc3elXPTr7QLJ7r7yrYed0areIKDiIAlMLC8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "73369f8d0864854d1acfa7f1e6217f7d6b6e3fa1",
|
"rev": "762b003329510ea855b4097a37511eb19c7077f0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
25
flake.nix
25
flake.nix
@ -12,7 +12,6 @@
|
|||||||
//
|
//
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
# pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
hp = pkgs.haskellPackages.override ( old: {
|
hp = pkgs.haskellPackages.override ( old: {
|
||||||
overrides = pkgs.lib.composeExtensions ( old.overrides or (_: _: {})) (f: p: {
|
overrides = pkgs.lib.composeExtensions ( old.overrides or (_: _: {})) (f: p: {
|
||||||
@ -21,30 +20,8 @@
|
|||||||
} );
|
} );
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
# packages = { inherit (pkgs) build-rauhala-info rauhala-info deploy-rauhala-info; };
|
packages.rauhala-info = pkgs.callPackage ./rauhala.info { site = hp.build-rauhala-info; };
|
||||||
packages.build-rauhala-info = pkgs.runCommand "site" { buildInputs = [pkgs.makeWrapper]; }
|
|
||||||
''
|
|
||||||
mkdir -p $out/bin/
|
|
||||||
cp ${hp.build-rauhala-info}/bin/site $out/bin/
|
|
||||||
wrapProgram $out/bin/site --prefix PATH : ${ pkgs.lib.makeBinPath [ pkgs.ipfs ] }
|
|
||||||
'';
|
|
||||||
apps.build-rauhala-info = flake-utils.lib.mkApp {
|
|
||||||
drv = packages.build-rauhala-info;
|
|
||||||
exePath = "/bin/site";
|
|
||||||
};
|
|
||||||
packages.deploy-rauhala-info = with pkgs; runCommand "deploy-rauhala-info.sh" { inherit bash ipfs; }
|
|
||||||
''
|
|
||||||
mkdir -p $out/bin/
|
|
||||||
substituteAll ${./support/deploy-rauhala-info.sh} $out/bin/deploy-rauhala-info.sh
|
|
||||||
chmod u+x $out/bin/deploy-rauhala-info.sh
|
|
||||||
'';
|
|
||||||
packages.rauhala-info = pkgs.callPackage ./rauhala.info { site = packages.build-rauhala-info; };
|
|
||||||
apps.deploy-rauhala-info = flake-utils.lib.mkApp {
|
|
||||||
drv = pkgs.deploy-rauhala-info;
|
|
||||||
exePath = "/bin/deploy-rauhala-info.sh";
|
|
||||||
};
|
|
||||||
defaultPackage = packages.rauhala-info;
|
defaultPackage = packages.rauhala-info;
|
||||||
defaultApp = packages.build-rauhala-info;
|
|
||||||
devShell = hp.shellFor {
|
devShell = hp.shellFor {
|
||||||
packages = h: [h.build-rauhala-info];
|
packages = h: [h.build-rauhala-info];
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
|
Loading…
Reference in New Issue
Block a user