age.nix (569B)
1 # age 1.0.0-rc.3 is required for encrypted identities. If your nixpkgs 2 # is too old to have it, you can run 3 # nix-env -i `nix-instantiate -E '(import <nixpkgs> {}).callPackage ./age.nix {}'` 4 # to install it from this file. 5 6 7 { buildGoModule 8 , fetchFromGitHub }: 9 buildGoModule rec { 10 pname = "age"; 11 version = "1.0.0-rc.3"; 12 vendorSha256 = "sha256-sXUbfxhPmJXO+KgV/dmWmsyV49Pb6CoJLbt50yVgEvI="; 13 14 src = fetchFromGitHub { 15 owner = "FiloSottile"; 16 repo = "age"; 17 rev = "v${version}"; 18 sha256 = "sha256-YXdCTK9/eMvcHWg7gQQiPlLWYx2OjbOJDDNdSYO09HU="; 19 }; 20 }