From 46b11c9d1a964e14a62b350057397b6ddefcf8d8 Mon Sep 17 00:00:00 2001 From: Johan Thomsen Date: Sun, 18 Nov 2018 21:58:03 +0100 Subject: [PATCH] morph: init at 1.1.0 - added adamt to maintainers-list.nix --- maintainers/maintainer-list.nix | 5 ++ .../package-management/morph/default.nix | 37 +++++++++++ pkgs/tools/package-management/morph/deps.nix | 66 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 4 files changed, 110 insertions(+) create mode 100644 pkgs/tools/package-management/morph/default.nix create mode 100644 pkgs/tools/package-management/morph/deps.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f98ac7972db8..264f74c109ed 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -73,6 +73,11 @@ github = "acowley"; name = "Anthony Cowley"; }; + adamt = { + email = "mail@adamtulinius.dk"; + github = "adamtulinius"; + name = "Adam Tulinius"; + }; adelbertc = { email = "adelbertc@gmail.com"; github = "adelbertc"; diff --git a/pkgs/tools/package-management/morph/default.nix b/pkgs/tools/package-management/morph/default.nix new file mode 100644 index 000000000000..27dbad884132 --- /dev/null +++ b/pkgs/tools/package-management/morph/default.nix @@ -0,0 +1,37 @@ +{ buildGoPackage, fetchFromGitHub, go-bindata, lib }: + +buildGoPackage rec { + name = "morph-${version}"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "dbcdk"; + repo = "morph"; + rev = "v${version}"; + sha256 = "0pixm48is9if9d2b4qc5mwwa4lzma6snkib6z2a1d4pmdx1lmpmm"; + }; + + goPackagePath = "github.com/dbcdk/morph"; + goDeps = ./deps.nix; + + buildInputs = [ go-bindata ]; + + prePatch = '' + go-bindata -pkg assets -o assets/assets.go data/ + ''; + + postInstall = '' + mkdir -p $lib + cp -v $src/data/*.nix $lib + ''; + + outputs = [ "out" "bin" "lib" ]; + + meta = with lib; { + description = "Morph is a NixOS host manager written in Golang."; + license = licenses.mit; + homepage = "https://github.com/dbcdk/morph"; + maintainers = with maintainers; [adamt johanot]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/package-management/morph/deps.nix b/pkgs/tools/package-management/morph/deps.nix new file mode 100644 index 000000000000..fdae5ef39ee2 --- /dev/null +++ b/pkgs/tools/package-management/morph/deps.nix @@ -0,0 +1,66 @@ +# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix) +[ + { + goPackagePath = "github.com/dbcdk/kingpin"; + fetch = { + type = "git"; + url = "https://github.com/dbcdk/kingpin"; + rev = "8554767bc91254c59c7297a99e9867c770e4eadb"; + sha256 = "05hfpgylv5mfnjz2mdd3jl8p3psmczvdbs4ydf9xvvc17c9mlrpq"; + }; + } + { + goPackagePath = "github.com/alecthomas/template"; + fetch = { + type = "git"; + url = "https://github.com/alecthomas/template"; + rev = "a0175ee3bccc567396460bf5acd36800cb10c49c"; + sha256 = "0qjgvvh26vk1cyfq9fadyhfgdj36f1iapbmr5xp6zqipldz8ffxj"; + }; + } + { + goPackagePath = "github.com/alecthomas/units"; + fetch = { + type = "git"; + url = "https://github.com/alecthomas/units"; + rev = "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a"; + sha256 = "1j65b91qb9sbrml9cpabfrcf07wmgzzghrl7809hjjhrmbzri5bl"; + }; + } + { + goPackagePath = "github.com/gobwas/glob"; + fetch = { + type = "git"; + url = "https://github.com/gobwas/glob"; + rev = "5ccd90ef52e1e632236f7326478d4faa74f99438"; + sha256 = "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z"; + }; + } + { + goPackagePath = "golang.org/x/crypto"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/crypto"; + rev = "0e37d006457bf46f9e6692014ba72ef82c33022c"; + sha256 = "1fj8rvrhgv5j8pmckzphvm3sqkzhcqp3idkxvgv13qrjdfycsa5r"; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sys"; + rev = "ee1b12c67af419cf5a9be3bdbeea7fc1c5f32f11"; + sha256 = "0cgp0xzbhg3fr77n2qrfmmsvhc287srnwi4mghwcjdxp6rx0s988"; + }; + } + { + goPackagePath = "gopkg.in/mattes/go-expand-tilde.v1"; + fetch = { + type = "git"; + url = "https://github.com/mattes/go-expand-tilde"; + rev = "cb884138e64c9a8bf5c7d6106d74b0fca082df0c"; + sha256 = "06xrp05njwam4sn031fkmd4gym5wfsw5q0v24nqhs4883lsx9dwq"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6691b10d1566..82df7476cc59 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22167,6 +22167,8 @@ with pkgs; mongoc = callPackage ../development/libraries/mongoc { }; + morph = callPackage ../tools/package-management/morph { }; + mupen64plus = callPackage ../misc/emulators/mupen64plus { }; muse = callPackage ../applications/audio/muse { };