mirror of
https://github.com/acaloiaro/ess
synced 2026-07-21 18:29:08 +00:00
fix: pass in pkgs and import nixpkgs correctly
Signed-off-by: Juan C. Müller <me@juancmuller.com>
This commit is contained in:
parent
284adb75aa
commit
7c168c7c25
2 changed files with 4 additions and 13 deletions
15
default.nix
15
default.nix
|
|
@ -1,19 +1,10 @@
|
|||
{
|
||||
pkgs ? (
|
||||
let
|
||||
inherit (builtins) fetchTree fromJSON readFile;
|
||||
inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs;
|
||||
in
|
||||
import (fetchTree nixpkgs.locked) {}
|
||||
),
|
||||
buildGoModule ? pkgs.buildGoModule,
|
||||
}:
|
||||
buildGoModule {
|
||||
{pkgs ? import <nixpkgs> {}, ...}:
|
||||
pkgs.buildGoModule {
|
||||
pname = "ess";
|
||||
version = "2.16.4";
|
||||
pwd = ./.;
|
||||
src = ./.;
|
||||
vendorHash = null;
|
||||
|
||||
meta = {
|
||||
description = "ess (env-sample-sync): automatically and safely synchronize env.sample files with .env";
|
||||
license = pkgs.lib.licenses.bsd2;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
inherit system;
|
||||
};
|
||||
in {
|
||||
packages.default = pkgs.callPackage ./. {};
|
||||
packages.default = pkgs.callPackage ./. {inherit pkgs;};
|
||||
CGO_ENABLED = 0;
|
||||
defaultPackage = self.packages.${system}.default;
|
||||
apps.default = flake-utils.lib.mkApp {
|
||||
|
|
|
|||
Loading…
Reference in a new issue