-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
woof: init at 2012-05-31 #33861
woof: init at 2012-05-31 #33861
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ stdenv, fetchurl, python }: | ||
|
||
stdenv.mkDerivation rec { | ||
version = "2012-05-31"; | ||
name = "woof-${version}"; | ||
|
||
src = fetchurl { | ||
url = "http://www.home.unix-ag.org/simon/woof-${version}.py"; | ||
sha256 = "d84353d07f768321a1921a67193510bf292cf0213295e8c7689176f32e945572"; | ||
}; | ||
|
||
buildInputs = [ python ]; | ||
runtimeDeps = [ python ]; | ||
|
||
unpackPhase = "true"; | ||
|
||
installPhase = | ||
'' | ||
mkdir -p $out/bin | ||
cp $src $out/bin/woof | ||
chmod +x $out/bin/woof | ||
''; | ||
|
||
meta = { | ||
homepage = http://www.home.unix-ag.org/simon/woof.html; | ||
description = "Web Offer One File - Command-line utility to easily exchange files over a local network"; | ||
license = stdenv.lib.licenses.gpl2Plus; | ||
platforms = stdenv.lib.platforms.unix; | ||
}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To add yourself as a maintainer, use
And don't forget to add yourself to https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to leave out all that
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for
runtimeDeps
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I have to admit I still don't fully understand how
buildInputs
andruntimeDeps
work. Would you mind pointing me in the right direction here? Of course I will remove it immediately.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I've never seen
runtimeDeps
before. But when I tested, it worked without.The manual has a nice overview: https://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes
Essentially,
buildInputs
are for run-time dependencies whereasnativeBuildInputs
are for build-time dependencies.