diff options
Diffstat (limited to 'nix/pkgs')
-rw-r--r-- | nix/pkgs/overlay.nix | 5 | ||||
-rw-r--r-- | nix/pkgs/r2wars-web/default.nix | 10 | ||||
-rw-r--r-- | nix/pkgs/vokobe/flaaaaake.nix | 38 |
3 files changed, 31 insertions, 22 deletions
diff --git a/nix/pkgs/overlay.nix b/nix/pkgs/overlay.nix index d9e3999..c5ecaa7 100644 --- a/nix/pkgs/overlay.nix +++ b/nix/pkgs/overlay.nix @@ -1,5 +1,4 @@ final: prev: { - vokobe = final.callPackage ./vokobe { inherit (final) naersk; }; - r2wars-web = final.callPackage ./r2wars-web { }; + vokobe = final.callPackage ./vokobe { inherit (final) naersk; }; + r2wars-web = final.callPackage ./r2wars-web { }; } - diff --git a/nix/pkgs/r2wars-web/default.nix b/nix/pkgs/r2wars-web/default.nix index 028df10..3e7fffd 100644 --- a/nix/pkgs/r2wars-web/default.nix +++ b/nix/pkgs/r2wars-web/default.nix @@ -1,4 +1,8 @@ -{ pkgs, lib, fetchgit }: +{ + pkgs, + lib, + fetchgit, +}: pkgs.buildGoModule rec { name = "r2wars-web-${version}"; @@ -10,7 +14,7 @@ pkgs.buildGoModule rec { }; vendorHash = null; - CGO_ENABLED=0; + CGO_ENABLED = 0; subPackages = [ "src" ]; postInstall = '' @@ -19,7 +23,7 @@ pkgs.buildGoModule rec { mv $out/bin/src $out/bin/r2wars-web ''; - + doCheck = false; meta = { diff --git a/nix/pkgs/vokobe/flaaaaake.nix b/nix/pkgs/vokobe/flaaaaake.nix index 7cf2f03..902cabd 100644 --- a/nix/pkgs/vokobe/flaaaaake.nix +++ b/nix/pkgs/vokobe/flaaaaake.nix @@ -5,35 +5,41 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; - outputs = { self, flake-utils, naersk, nixpkgs }: + outputs = + { + self, + flake-utils, + naersk, + nixpkgs, + }: let - pkgs = (import nixpkgs) { - system = "x86_64-linux"; - }; + pkgs = (import nixpkgs) { system = "x86_64-linux"; }; + + naersk' = pkgs.callPackage naersk { }; - naersk' = pkgs.callPackage naersk {}; - - in rec { + in + rec { packages."x86_64-linux".vokobe = naersk'.buildPackage { src = ./.; meta = with pkgs.lib; { description = "A minimal static site generator tailored to my needs."; - homepage = "https://git.emile.space/hanemile/vokobe"; - license = licenses.mit; - platforms = platforms.all; - maintainers = with maintainers; [ - hanemile - ]; + homepage = "https://git.emile.space/hanemile/vokobe"; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ hanemile ]; }; }; - + # For `nix build` & `nix run`: defaultPackage = packages."x86_64-linux".vokobe; # For `nix develop` (optional, can be skipped): devShell = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ rustc cargo ]; + nativeBuildInputs = with pkgs; [ + rustc + cargo + ]; }; # hydraJobs."<attr>"."<system>" = derivation; @@ -41,4 +47,4 @@ build."x86_64-linux" = packages."x86_64-linux".vokobe; }; }; -} \ No newline at end of file +} |