parent
95d44e4939
commit
f069b9762e
1 changed files with 0 additions and 17 deletions
17
flake.nix
17
flake.nix
|
@ -10,26 +10,9 @@
|
|||
let
|
||||
out = system:
|
||||
let
|
||||
inherit (builtins) substring;
|
||||
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
version = "0.0.1+${substring 0 8 self.lastModifiedDate}_${self.shortRev or "dirty"}";
|
||||
in
|
||||
{
|
||||
packages.default = with pkgs; stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "pleshevski_site";
|
||||
inherit version;
|
||||
|
||||
src = ./.;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r dist/* $out
|
||||
'';
|
||||
});
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
pre-commit
|
||||
|
|
Loading…
Add table
Reference in a new issue