initial commit

This commit is contained in:
Denis Lehmann 2024-07-12 19:26:58 +02:00
commit 2d9b0f77b3
3 changed files with 149 additions and 0 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "Add new Git remotes quickly";
outputs = { self, nixpkgs }@inputs:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.unix;
nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
});
in
{
packages = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in
{
gra = pkgs.stdenv.mkDerivation {
name = "gra";
src = self;
installPhase = ''
install -m 755 -D gra $out/bin/gra
'';
};
default = self.packages.${system}.gra;
});
};
}