diff --git a/default.nix b/default.nix index 973042a91fca407a34673a73f2d4b2b4c898da53..d6497c913792821327299a11d77f5266aa1e5d0b 100644 --- a/default.nix +++ b/default.nix @@ -15,5 +15,7 @@ modules = import ./modules; # NixOS modules overlays = import ./overlays; # nixpkgs overlays # This file describes your repository contents. -# Having pkgs default to is fine though, and it lets you use short +# nix-build -A mypackage + # some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { }; + # ... } diff --git a/flake.nix b/flake.nix index 52c3005a0f6242c2d3cfd9b7574f63455d55015f..81a143fa3f57524cc2945862e0fb1884b91a83a6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,6 @@ { description = "jolheiser personal NUR repository"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { self, nixpkgs }: let @@ -12,15 +13,16 @@ "armv6l-linux" "armv7l-linux" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); -{ + in + description = "jolheiser personal NUR repository"; let -{ + description = "jolheiser personal NUR repository"; systems = [ -{ + description = "jolheiser personal NUR repository"; "x86_64-linux" -{ + description = "jolheiser personal NUR repository"; "i686-linux" - nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) description = "jolheiser personal NUR repository"; + "x86_64-darwin" }; } diff --git a/pkgs/example-package/default.nix b/pkgs/example-package/default.nix new file mode 100644 index 0000000000000000000000000000000000000000..41e22df3354f7b6c68cc81bc5846a7b1db73aae4 --- /dev/null +++ b/pkgs/example-package/default.nix @@ -0,0 +1,9 @@ +{ stdenv }: + +stdenv.mkDerivation rec { + name = "example-package-${version}"; + version = "1.0"; + src = ./.; + buildPhase = "echo echo Hello World > example"; + installPhase = "install -Dm755 example $out"; +} diff --git a/pkgs/tmpl/default.nix b/pkgs/tmpl/default.nix deleted file mode 100644 index beb9485563cf107a5a09ec596594b1a01dceada2..0000000000000000000000000000000000000000 --- a/pkgs/tmpl/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ buildGoModule, fetchFromGitea, lib, ... }: -buildGoModule rec { - pname = "tmpl"; - version = "0.3.1"; - - src = fetchFromGitea { - domain = "git.jojodev.com"; - owner = "jolheiser"; - repo = "tmpl"; - rev = "v${version}"; - sha256 = "sha256-2GThTkTSiPv4SiWmRC/acKQ7k5uqrQQRM56eOxWCg7Q="; - }; - - vendorSha256 = "sha256-PmguDbjTSz0jzj1pwUNZrO1aAFNkWSo/FAef29TjsGI="; - - ldflags = [ "-s" "-w" "-X=go.jolheiser.com/tmpl/cmd.Version=${version}" ]; - - meta = with lib; { - description = "Template automation for bootstrapping projects"; - homepage = "https://git.jojodev.com/jolheiser/tmpl"; - license = licenses.mit; - }; -}